<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>轮播图</title>
</head>
<style>
    /* 窗口的样式 */
    .eye{
        height: 300px;
        width: 400px;
        border: 4px solid #333;
        margin: 100px auto;
        overflow: hidden;
    }
    .wrap{
        width: 1600px;
        height: 300px;
        animation: move 4s infinite steps(4);
    }
    .item{
        width: 400px;
        height: 300px;
        float: left;
    }
    @keyframes move {
            from{
                margin-left: 0px;
            }
            to{
                margin-left: -1600px;
            }
    }
</style>
<body>
        <div class="eye">
            <div class="wrap">
                <div class="item">1</div>
                <div class="item">2</div>
                <div class="item">3</div>
                <div class="item">4</div>
            </div>
        </div>
</body>
</html>